export function identityTabBar (val) {
  if (val == '3') {
    console.log('角色--司机')
    uni.reLaunch({
      url: '/pages/drivertabbar/sourcegoods/sourcegoods',
    })
  } else if (val == '2') {
    console.log('角色--承运商')
    uni.reLaunch({
      url: '/pages/carriertabbar/sourcegoods/sourcegoods',
    })
  } else { }
}




// 司机
export const drivertabbar = [
  {
    "pagePath": "pages/drivertabbar/sourcegoods/sourcegoods",
    "iconPath": "/static/huoyuan0.png",
    "selectedIconPath": "/static/huoyuan1.png",
    "text": "货源"
  },
  {
    "pagePath": "pages/drivertabbar/waybill/waybill",
    "iconPath": "/static/yundan0.png",
    "selectedIconPath": "/static/yundan1.png",
    "text": "订单"
  },
  {
    "pagePath": "pages/drivertabbar/my/my",
    "iconPath": "/static/wode0.png",
    "selectedIconPath": "/static/wode1.png",
    "text": "我的"
  },
]
// 承运商
export const carriertabbar = [
  {
    "pagePath": "pages/carriertabbar/sourcegoods/sourcegoods",
    "iconPath": "/static/huoyuan0.png",
    "selectedIconPath": "/static/huoyuan1.png",
    "text": "货源"
  },
  {
    "pagePath": "pages/carriertabbar/waybill/waybill",
    "iconPath": "/static/yundan0.png",
    "selectedIconPath": "/static/yundan1.png",
    "text": "订单"
  },
  {
    "pagePath": "pages/carriertabbar/my/my",
    "iconPath": "/static/wode0.png",
    "selectedIconPath": "/static/wode1.png",
    "text": "我的"
  },
]